package Test;

public class SingleOfForm2 {
    private static SingleOfForm2 single2 = null;
    private SingleOfForm2(){}
    public static SingleOfForm2 getSingle2(){
        if(single2==null){
            single2 = new SingleOfForm2();
        }
        return single2;
    }
    public void show(){
        System.out.println("懒汉式单例设计模式");
    }
}
